﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using BaMusaSoft.RPS.ViewModel;

namespace BaMusaSoft.RPS.View
{
    /// <summary>
    /// Interaction logic for DataGridColumnsVisibilty.xaml
    /// </summary>
    public partial class DataGridColumnsVisibilty : Window
    {
        DataGridColumnsViewModel vm ;
        private DataGridColumnsVisibilty()
        {
            InitializeComponent();
           
        }
        public DataGridColumnsVisibilty(DataGridColumnsViewModel vm)
            : this()
        {
            this.vm = vm;
            this.DataContext = this.vm;
        }

        private void WindowClosing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            vm.Save();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
        }
    }
}
